﻿<Window x:Class="LineChartLegendBinding.Window1"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
		Title="WPF DynamicDataDisplay Sample - Legend Item is following its source LineChart" WindowState="Maximized">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>

		<d3:ChartPlotter Name="plotter"></d3:ChartPlotter>

		<StackPanel Grid.Row="1">
			<GroupBox Header="Line color" Margin="15,5,15,5">
				<d3:ColorSelector Name="colorSelector" SelectedValueChanged="colorSelector_SelectedValueChanged"/>
			</GroupBox>
			<GroupBox Header="Line thickness" Margin="15,5,15,5">
				<Slider Minimum="0.1" Maximum="10.0" Value="1.0" Name="slider" Margin="10" ValueChanged="slider_ValueChanged" />
			</GroupBox>
			<Button Content="Change legend position" HorizontalAlignment="Center" Click="Button_Click" Margin="5"/>
		</StackPanel>

	</Grid>
</Window>
